| Visual Basic (Declaration) | |
|---|---|
Public Overloads Overrides Sub Write( _ ByVal buffer() As Byte, _ ByVal offset As Integer, _ ByVal count As Integer _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As PipeStream Dim buffer() As Byte Dim offset As Integer Dim count As Integer instance.Write(buffer, offset, count) | |
Parameters
- buffer
- The storage location for the written data.
- offset
- The zero-based position in the buffer from which to begin writing from.
- count
- The exact number of bytes to write.
| Exception | Description |
|---|---|
| System.IO.IOException | Thrown when the Stream is not writeable. |
| System.ArgumentNullException | Thrown when the buffer is null. |
| System.ArgumentOutOfRangeException | Thrown when the offset is less than zero or when count is less than or equal to zero. |
| System.ArgumentException | Thrown when the (offset + count) > buffer.Length. |
This method actually calls PipeStream.CoreStream.Write, passing the data "through" the PipeStream and into PipeStream.CoreStream.
Target Platforms: Microsoft .NET Framework 2.0